/*
 * @Author: cgl
 * @Date: 2023-04-19 14:57:57
 * @LastEditors: cgl
 * @LastEditTime: 2023-05-19 11:23:22
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\slides\slideSample.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询滑片样品登记分页列表
export function slidesSampleList(data) {
  return request({
    url: '/basic/registration/slidesSample/list',
    method: 'post',
    data,
  })
}
// 导出滑片样品登记列表
export function slidesSampleExport(data) {
  return request({
    url: `/basic/registration/slidesSample/export`,
    method: "post",
    data,
  });
}
// 查询滑片样品登记列表
export function slidesSampleListing(params) {
  return request({
    url: '/basic/registration/slidesSample/listing',
    method: 'get',
    params,
  })
}
// 导入
export function slidesSampleImport(data) {
  return request({
    url: `/basic/registration/slidesSample/importData`,
    method: "post",
    data,
  });
}
// 获取滑片样品登记详细信息
export function slidesSampleDetail(registrationSlidesSampleId) {
  return request({
    url: '/basic/registration/slidesSample/getInfo/' + registrationSlidesSampleId,
    method: 'get'
  })
}
// 计算
export function slidesSampleCompute(data) {
  return request({
    url: `/basic/registration/slidesSample/compute`,
    method: "post",
    data,
  });
}
// 新增滑片样品登记
export function slidesSampleAdd(data) {
  return request({
    url: `/basic/registration/slidesSample/add`,
    method: "post",
    data,
  });
}
// 修改滑片样品登记
export function slidesSampleEdit(data) {
  return request({
    url: '/basic/registration/slidesSample/edit',
    method: 'post',
    data,
  })
}
// 删除滑片样品登记
export function slidesSampleDelete(registrationSlidesSampleIds) {
  return request({
    url: '/basic/registration/slidesSample/remove/' + registrationSlidesSampleIds,
    method: 'get'
  })
}
// 更新状态
export function slidesSampleUpdateState(data) {
  return request({
    url: '/basic/registration/slidesSample/updateState',
    method: 'post',
    data,
  })
}

// 添加剂量计
export function addDosageNumber(data) {
  return request({
    url: '/biz/slide/binding/addDosageNumber',
    method: 'post',
    data,
  })
}